<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>  
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
	<title>明细</title>
	<%@include file="/commons/include/getById.jsp" %>
	<script type="text/javascript">
$(function(){
	
});
	</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">发货单明细</td>
		<td>
			<div class="menuTool">
				<c:if test="${audit=='audit'}">
				<a class="get" href="audit2.htm?keyIndex=${po.id}">审核</a>
				</c:if>
				<c:if test="${acc=='acc'}">
				<a class="get" href="acc2.htm?keyIndex=${po.id}">记账</a>
				</c:if>
				<a class="back" onClick="javascript:window.history.back();return false;" href="#">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td class="form_title">发货单号：</td>
		<td class="form_input">${fn:escapeXml(po.send_sn)}</td>
	
		<td class="form_title">所属订购单号：</td>
		<td class="form_input">${fn:escapeXml(po.order_sn)}</td>
		<td class="form_title">客户代码：</td>
		<td class="form_input">${fn:escapeXml(po.custom_code)}</td>
	</tr>
	<tr>
	    <td class="form_title">客户名称：</td>
		<td class="form_input">${fn:escapeXml(po.customs_name)}</td>
	    <td class="form_title">发货日期：</td>
		<td class="form_input">${cfn:formatDate(po.send_date,'yyyy-MM-dd')}</td>
		<td class="form_title">制单时间：</td>
		<td class="form_input">${cfn:formatDate(po.send_time, 'yyyy-MM-dd HH:mm:ss')}</td>
	
	</tr>
	<tr>
		<td class="form_title">销售部门：</td>
		<td class="form_input">${fn:escapeXml(dep.dep_name)} ${po.sell_dep_code}</td>
	
		<td class="form_title">发货仓库：</td>
		<td class="form_input">${fn:escapeXml(depot.depot_nane)} ${po.depot_code}</td>
	
		<td class="form_title">制单操作员代码：</td>
		<td class="form_input">${fn:escapeXml(po.creater_code)}</td>
	
		
	</tr>
	<tr>
	    <td class="form_title">仓库出仓发货性质：</td>
		<td class="form_input">
		<c:if test="${po.send_type==1}">销售出仓</c:if>
		<c:if test="${po.send_type==2}">调拨出仓</c:if>
		<c:if test="${po.send_type==3}">赠品出仓</c:if>
		<c:if test="${po.send_type==4}">其他出仓</c:if>
		<c:if test="${po.send_type==5}">质量退仓</c:if>
		<c:if test="${po.send_type==6}">残次退仓</c:if>
		<c:if test="${po.send_type==7}">其他退仓</c:if>
		</td>
		<td class="form_title">发货单审核状态：</td>
		<td class="form_input">
		<c:if test="${fn:escapeXml(po.audit_status==1)}">已审核</c:if>
		<c:if test="${fn:escapeXml(po.audit_status==0)}">未审核</c:if>
		</td>
	
		<td class="form_title">发货单记账状态：</td>
		<td class="form_input">
		<c:if test="${fn:escapeXml(po.acc_status==1)}">已记账</c:if>
		<c:if test="${fn:escapeXml(po.acc_status==0)}">未记账</c:if>
		</td>
	</tr>
	<tr>
		<td class="form_title">审核人员代码：</td>
		<td class="form_input">${fn:escapeXml(po.audit_user_code)}</td>
	
		<td class="form_title">发货单打印状态</td>
		<td class="form_input">
		<c:if test="${fn:escapeXml(po.print_status==0)}">未打印</c:if>
		<c:if test="${fn:escapeXml(po.print_status==1)}">已打印</c:if>
		</td>
		<td class="form_title">发货人员代码：</td>
		<td class="form_input">${fn:escapeXml(po.shipper_code)}</td>
	
		
	</tr>
	<tr>
	    <td class="form_title">运送车辆车牌号码：</td>
		<td class="form_input">${fn:escapeXml(po.license_plate)}</td>
		<td class="form_title">司机代码：</td>
		<td class="form_input">${fn:escapeXml(po.driver_code)}</td>
	
		<td class="form_title">跟车人员代码：</td>
		<td class="form_input">${fn:escapeXml(po.car_user)}</td>
	</tr>
	<tr>
		<td class="form_title">车辆送货日期：</td>
		<td class="form_input">${cfn:formatDate(po.delivery_date, 'yyyy-MM-dd')}</td>
	
		<td class="form_title">发货单回单日期：</td>
		<td class="form_input">${cfn:formatDate(po.back_bill_date, 'yyyy-MM-dd')}</td>
		
		<td class="form_title">财务统计核算期：</td>
		<td class="form_input">${fn:escapeXml(po.acc_period)}</td>
	</tr>
	<tr>
		<td class="form_title">备注：</td>
		<td class="form_input" colspan="5">${fn:escapeXml(po.remark)}</td>
	</tr>
	 <tr>
	  <td class="form_title">发货产品</td>
	  <td class="form_input" colspan="5">
	  <table width="340" border="0"
						cellpadding="2" cellspacing="1" class="listLogo" id="MGoodsPanel">
						<tr>
							<td>产品代码</td>
							<td>产品名称</td>
							<td>发货数量</td>
							<td>重量</td>
							<td>计量单位</td>
						</tr>
						<c:forEach items="${refGoods}" var="rg" varStatus="status">
							<tr>
								<td>${rg.goods_sn}<input
									type="hidden" name="ref_id" value="${rg.id}" /> <input
									type="hidden" name="wprice_${rg.goods_id}"
									id="wprice_${rg.goods_id}" value="${rg.wprice}" />
								</td>
								<td>${rg.goods_name} 
								</td>
								<td>
											${rg.amount}
										</td>
								
								
								<td>${rg.weight} 
								</td>
								<td>${rg.unit} 
								</td>
							</tr>
						</c:forEach>
					</table>
      </td>
    </tr>
</table>
</body>
</html>
